package com.zzg.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import com.zzg.springboot.configbean.ConfigBean;

@SpringBootApplication
//spring Boot程序入口类加上@EnableConfigurationProperties并指明要加载哪个自定义bean
@EnableConfigurationProperties({ConfigBean.class})
public class Application {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SpringApplication.run(Application.class, args);
	}

}
